package com.life.ai.server.framework.syslog.event;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * SysLogEvent
 *
 * @author kylewka
 * @since 2023/12/19
 */
@Data
@Accessors(chain = true)
public class SysLogEvent implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("日志标题")
    private String title;

    @ApiModelProperty("操作IP地址")
    private String remoteAddr;

    @ApiModelProperty("用户代理")
    private String userAgent;

    @ApiModelProperty("请求URI")
    private String requestUri;

    @ApiModelProperty("操作方式")
    private String requestMethod;

    @ApiModelProperty("类名称")
    private String className;

    @ApiModelProperty("方法名称")
    private String methodName;

    @ApiModelProperty("请求参数")
    private String params;

    @ApiModelProperty("返回内容")
    private String results;

    @ApiModelProperty("操作时间")
    private Date operateTime;

    @ApiModelProperty("执行时间")
    private Long executeTime;

    @ApiModelProperty("是否异常（0正常 1异常）")
    private Boolean hasError;

    @ApiModelProperty("异常信息")
    private String exception;

    @ApiModelProperty("创建人")
    private Long createBy;
}
